<!--
 * @Author: 袁三金
 * @Date: 2024-01-28 15:29:16
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-02-16 19:40:41
 * @Description: 请填写简介
-->
<template>
  <div class="backups">
    <header class="header">
      <Breadcrumb></Breadcrumb>
      <div class="search" @click="overlay = true">
        <span style="padding-right: 5px"
          ><i class="el-icon-search" style="font-size: 20px"></i
        ></span>
        <span style="vertical-align: baseline">搜索云盘内文件</span>
      </div>
    </header>
    <div class="overlay-container" v-if="overlay">
      <div class="search_dialog">
        <div class="close" @click="overlay = false">
          <i class="el-icon-close" style="font-size: 20px"></i>
        </div>
        <div class="search_input">
          <input type="text" placeholder="搜索文件" />
        </div>
        <div class="search_menu">
          <ul class="search-filter-list">
            <li class="search-filter-list-item">
              <span class="search-filter-list-item-icon">
                <i class="el-icon-picture"></i>
              </span>
              <span>图片</span>
            </li>
            <li class="search-filter-list-item">
              <span class="search-filter-list-item-icon">
                <i class="el-icon-video-camera"></i>
              </span>
              <span>视频</span>
            </li>
            <li class="search-filter-list-item">
              <span class="search-filter-list-item-icon">
                <i class="el-icon-folder"></i>
              </span>
              <span>文件夹</span>
            </li>
            <li class="search-filter-list-item">
              <span class="search-filter-list-item-icon">
                <i class="el-icon-document"></i>
              </span>
              <span>文档</span>
            </li>
            <li class="search-filter-list-item">
              <span class="search-filter-list-item-icon">
                <i class="el-icon-service"></i>
              </span>
              <span>音频</span>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Breadcrumb from "@/components/Breadcrumb/index.vue";
export default {
  data() {
    return {
      input: "",
      overlay: false,
    };
  },
  components: {
    Breadcrumb,
  },
};
</script>

<style lang="scss" scoped>
.backups {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 0 40px;
  padding-top: 24px;
  flex-direction: column;
  position: relative;
  .overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* 控制蒙层在页面中的层级 */
    .search_dialog {
      width: 620px;
      height: 280px;
      border: 1px solid #ccc;
      border-radius: 10px;
      margin: 150px auto;
      position: relative;
      background-color: #fff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      .search_input {
        position: absolute;
        top: 12px;
        left: 0;
        right: 60px;
        height: 52px;
        padding-left: 24px;
        display: flex;
        -ms-flex-align: center;
        align-items: center;

        input {
          border: none;
          outline: none;
          caret-color: rgb(99, 125, 255);
          height: 25px;
          width: 546px;
        }
        input::placeholder {
          color: #ccc;
        }
      }
      .search_menu {
        width: 100%;
        margin-top: 64px;
        position: relative;
        bottom: 0;
        .search-filter-list {
          list-style: none;
          display: flex;
          flex-direction: column;
          justify-content: center;
          padding-left: 12px;
          margin: 5px 0;
          align-items: center;
          .search-filter-list-item {
            padding: 10px 12px;
            font-size: 14px;
            color: rgb(37, 38, 43);
            i {
              font-size: 20px;
              color: rgb(37, 38, 43);
            }
            .search-filter-list-item-icon {
              margin-right: 10px;
            }
          }
        }
      }
      .close {
        position: absolute;
        right: 16px;
        top: 22px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
      }
      .close:hover {
        background-color: rgb(132, 133, 141, 0.08);
      }
    }
  }

  .header {
    display: flex;
    justify-content: space-between;

    .search {
      cursor: pointer;
      width: 146px;
      height: 28px;
      border-radius: 5px;
      opacity: 1;
      padding: 4px;
      display: flex;
      cursor: pointer;
      align-items: center;
      font-size: 12px;
      background-color: rgb(132, 133, 141, 0.07);
      color: rgb(37, 38, 43, 0.36);
      .el-icon {
        font-size: 20px;
      }
    }
  }
}
</style>
